<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/10
 * Time: 11:55
 */

namespace wechat;

use wechat\action\api_open;

require('../vendor/autoload.php');
require('../define.php');
require('action/api_open.php');
require('util/WechatPlatform.php');

if (!empty($_GET['a']) && !empty($_GET['c'])) {
    $action = 'api_open';
    $action = $_GET['c'];
    $method = $_GET['a'];
    if ($action == 'api_open') $obj = new api_open();
    $obj->$method();
    exit();
}